package com.zhuxi.bean;

import com.zhuxi.service.DubboService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ComsumerComponet {

    @Reference
    private DubboService service;

    public void doServiceA() {
        try {
            service.methodA();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public void doServiceB() {
        try {
            service.methodB();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public void doServiceC() {
        try {
            service.methodC();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
